<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - Bootstrap Table</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="{{ asset('admin/css/bootstrap.min.css?v=3.3.6') }}" rel="stylesheet">
    <link href="{{ asset('admin/css/font-awesome.css?v=4.4.0') }}" rel="stylesheet">
    <link href="{{ asset('admin/css/plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
    <link href="{{ asset('admin/css/animate.css') }}" rel="stylesheet">
    <link href="{{ asset('admin/css/style.css?v=4.1.0') }}" rel="stylesheet">


</head>

<body class="gray-bg">

<div class="col-sm-12 wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>订单列表</h5>
            <div class="ibox-tools">
            </div>
        </div>
        <div class="ibox-content" style="text-align: center;">
            <div class="example-wrap">
                <div class="example">
                    <table data-toggle="table" data-mobile-responsive="true">
                        <thead>
                        <tr>
                            <th data-field="name">ID</th>
                            <th data-field="image">订单号</th>
                            <th data-field="star">金额</th>
                            <th data-field="remote_id">商品名称</th>
                            <th data-field="serverhost">商品apple_id</th>
                            <th data-field="usernmae">用户名</th>
                            <th data-field="level">等级</th>
                            <th data-field="license">创建时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($orders as $order)
                            <tr data-index="0">
                                <td style="">{{ $order->id }}</td>
                                <td style="">{{ $order->number }}</td>
                                <td style="">{{ $order->total }}</td>
                                <td style="">{{ $order->product->name }}</td>
                                <td style="">{{ $order->product->apple_id }}</td>
                                <td style="">{{ $order->admin->email }}</td>
                                <td style="">{{ $order->product->level->name }}</td>
                                <td style="">{{ $order->created_at }}</td>
                            </tr>
                        @endforeach
                        </tbody>
                    </table>
                </div>
                {{ $orders->links() }}
            </div>
        </div>
    </div>
</div>


<!-- 全局js -->
<script src="{{ asset('admin/js/jquery.min.js?v=2.1.4') }}"></script>
<script src="{{ asset('admin/js/bootstrap.min.js?v=3.3.6') }}"></script>

<!-- 自定义js -->
<script src="{{ asset('admin/js/content.js?v=1.0.0') }}"></script>


<!-- Bootstrap table -->
<script src="{{ asset('admin/js/plugins/bootstrap-table/bootstrap-table.min.js') }}"></script>
<script src="{{ asset('admin/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js') }}"></script>
<script src="{{ asset('admin/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js') }}"></script>

<!-- Peity -->
<script src="{{ asset('admin/js/demo/bootstrap-table-demo.js') }}"></script>


</body>

</html>
